package com.xuce.dao.mapper;

import com.xuce.pojo.TUser;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface TUserMapper {
    int deleteByPrimaryKey(Long uid);

    @Insert("insert into t_user (id, email, password)\n" +
            "values (#{id,jdbcType=BIGINT}, #{email,jdbcType=VARCHAR}, #{password,jdbcType=CHAR})")
    int insert(TUser record);

    int insertSelective(TUser record);

    TUser selectByPrimaryKey(Long uid);

    int updateByPrimaryKeySelective(TUser record);

    int updateByPrimaryKey(TUser record);

    int activeByEmail(TUser record);
}
